#ifndef DATADISPWIDGET_H
#define DATADISPWIDGET_H
///
/// 参数显示Widget, 主要用来显示数据
///

#include "public_define.h"

#include <QGroupBox>
#include <QHBoxLayout>
#include <QLabel>
#include <QLineEdit>
#include <QVBoxLayout>
#include <QVariant>
#include <QWidget>

class DataDispWidget : public QWidget
{
    Q_OBJECT

public:
    explicit DataDispWidget( QString text, QString unit, QWidget* parent = nullptr );

    void setDispLevel( const uint& DispLevel );

    void setData( const QVariant& Data );

    void setZoom( const uint& Zoom );

signals:

private:
    QString    m_Text;
    QString    m_Unit;
    uint       m_Zoom;
    uint       m_DispLevel;
    QVariant   m_Data;
    QLabel*    m_TitleLabel;
    QLineEdit* m_DataEdit;
    QGroupBox* m_GroupBox;

    void initView();
};

#endif  // DATADISPWIDGET_H
